Predefined Variables
Table A-9 lists special variables that are defined by AppleScript. These variables are global, that is, they are available anywhere in a script.As with all other identifiers, predefined variables are not case sensitive. For example,
result
,Result
, andRESULT
are all treated as the same variable.
Predefined variables Identifier Class Description it Reference The default target. For more information, see Chapter 7, "Control Statements." me Reference The current script (used within Tell statements to refer to handlers or properties of the current script). For more information, see Chapter 7, "Control Statements," and Chapter 8, "Handlers." pi Real The value π (roughly 3.14159). result Any class The result returned by the most recently executed command or the most recently evaluated expression. If the most recently executed command did not return a result, then the value of result
is undefined.return String A return character. space String A space character. tab String A tab character.